<?php
$loader->requireOnce('includes/inPatientCore/IInstantPanel.class.php');
/**
 * Build Emergency instant info panel.
 * @package module.dept_emer.includes
 * @author hdviet
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class EmergencyInstantPanel implements IInstantPanel{
	var $ticketId = 0;
	function __construct($ticketId) {
		$this->ticketId = $ticketId;
	}
	/**
	 * (non-PHPdoc)
	 * @see local/includes/inPatientCore/IInstantPanel#renderPanel()
	 */
	public function renderPanel() {
		$instantPanel = "<tr id='".$this->ticketId."Row'>";
		$instantPanel .= '<td colspan="1">';
		$instantPanel .= '<div id="' . $this->ticketId . 'InstantInfo">';
		$instantPanel .= '<ul>';
		$instantPanel .= '<li><a href="#' . $this->ticketId . 'InstantInfo-0">' . L10nHelper::_('Patient info') . '</a></li>';
		$instantPanel .= '<li><a href="#' . $this->ticketId . 'InstantInfo-1">' . L10nHelper::_('Clinical diagnosis') . '</a></li>';
		$instantPanel .= '<li><a href="#' . $this->ticketId . 'InstantInfo-2">' . L10nHelper::_('Laboratory') . '</a></li>';
		// FIXME: Remove this line. It's just for testing
		$instantPanel .= '<li><a href="#' . $this->ticketId . 'InstantInfo-3">' . L10nHelper::_('Radiology') . '</a></li>';
		//
		$instantPanel .= '</ul>';
		$instantPanel .= '<div id="' . $this->ticketId . 'InstantInfo-0"></div>';
		$instantPanel .= '<div id="' . $this->ticketId . 'InstantInfo-1"></div>';
		$instantPanel .= '<div id="' . $this->ticketId . 'InstantInfo-2"></div>';
        // FIXME
		$instantPanel .= '<div id="' . $this->ticketId . 'InstantInfo-3"></div>';
        //
		$instantPanel .= '</div>';
		$instantPanel .= '</td>';
		$instantPanel .= '</tr>';
		return 	$instantPanel;

	}
}

?>